← Back
Editing: index-legacy74.js
!function(){function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function l(n,o,i,u){var l=o&&o.prototype instanceof a?o:a,s=Object.create(l.prototype);return r(s,"_invoke",function(n,r,o){var i,u,l,a=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,n){return i=e,u=0,l=t,p.n=n,c}};function y(n,r){for(u=n,l=r,e=0;!f&&a&&!o&&e<s.length;e++){var o,i=s[e],y=p.p,v=i[2];n>3?(o=v===r)&&(l=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=n<2&&y<i[1])?(u=0,p.v=r,p.n=i[1]):y<v&&(o=n<3||i[0]>r||r>v)&&(i[4]=n,i[5]=r,p.n=v,u=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,v){if(a>1)throw TypeError("Generator is already running");for(f&&1===s&&y(s,v),u=s,l=v;(e=u<2?t:l)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(u,l)):p.n=l:p.v=l);try{if(a=2,i){if(u||(o="next"),e=i[o]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,u<2&&(u=0)}else 1===u&&(e=i.return)&&e.call(i),u<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((e=(f=p.n<0)?l:n.call(r,p))!==c)break}catch(e){i=t,u=1,l=e}finally{a=1}}return{value:e,done:f}}}(n,i,u),!0),s}var c={};function a(){}function s(){}function f(){}e=Object.getPrototypeOf;var p=[][i]?e(e([][i]())):(r(e={},i,function(){return this}),e),y=f.prototype=a.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,r(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t}return s.prototype=f,r(y,"constructor",f),r(f,"constructor",s),s.displayName="GeneratorFunction",r(f,u,"GeneratorFunction"),r(y),r(y,u,"Generator"),r(y,i,function(){return this}),r(y,"toString",function(){return"[object Generator]"}),(n=function(){return{w:l,m:v}})()}function r(t,e,n,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}r=function(t,e,n,o){function u(e,n){r(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!o,configurable:!o,writable:!o}):t[e]=n:(u("next",0),u("throw",1),u("return",2))},r(t,e,n,o)}function o(t,e,n,r,o,i,u){try{var l=t[i](u),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}System.register(["./utils-lib-legacy.js?v=1765440387","./index-legacy93.js?v=1765440387","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1765440387","./index-legacy121.js?v=1765440387","./base-lib-legacy.js?v=1765440387","./column-legacy.js?v=1765440387","./useController-legacy6.js?v=1765440387","./useStore-legacy3.js?v=1765440387","./useController-legacy12.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387","./index-legacy120.js?v=1765440387","./index-legacy94.js?v=1765440387","./validator-legacy.js?v=1765440387","./index.vue_vue_type_style_index_0_scoped_b3c4124c_lang-legacy.js?v=1765440387","./site-legacy.js?v=1765440387"],function(e,r){"use strict";var i,u,l,c,a,s,f,p,y,v,d,m,h,b,g,_,x,j,k,C,w,S,B,O,T,A,I,P,G,R,q,E,F,L,M,W,H,N,U,$,z,D,J,K;return{setters:[function(t){i=t.u,u=t.aM,l=t.a6,c=t.a7,a=t.L,s=t.a8,f=t.e},function(t){p=t._},function(t){y=t._},function(t){v=t.B},function(t){d=t.c,m=t.s,h=t.r,b=t.w,g=t.e,_=t.B,x=t.p,j=t.n,k=t.q,C=t.v,w=t.x,S=t.A,B=t.y,O=t.C,T=t.M},function(t){A=t.a,I=t.g,P=t.u},function(t){G=t.b,R=t.d,q=t.e,E=t.f,F=t.u},function(t){L=t.S},function(t){M=t.S,W=t.o,H=t.a,N=t.b,U=t.g,$=t.d,z=t.c,D=t.e,J=t.m,K=t.r},null,null,null,null,null,null],execute:function(){var Q={key:0,class:"flex items-center"},V={key:1,class:"flex items-center"},X=d({__name:"index",setup:function(e){i();var f=L().getSiteList,d=m(L()),X=d.activeType,Y=d.isRefreshList,Z=m(M()).proxyType,tt=h({});b(q,function(t){null!=t&&t.pluginInfo&&(tt.value=t.pluginInfo)},{immediate:!0,deep:!0});var et,nt,rt=u({options:[{type:"button",label:"添加反代",active:!0,onClick:N},{type:"custom",render:function(){return g(v,{class:"ml-1rem",isRequest:!1,pluginInfo:tt.value},null)}}]}).BtOperation,ot=s([F(),{label:"删除项目",value:"delete",event:(et=n().m(function t(e,r,o,i,u){return n().w(function(t){for(;;)switch(t.n){case 0:J(o.value,u);case 1:return t.a(2)}},t)}),nt=function(){var t=this,e=arguments;return new Promise(function(n,r){var i=et.apply(t,e);function u(t){o(i,n,r,u,l,"next",t)}function l(t){o(i,n,r,u,l,"throw",t)}u(void 0)})},function(t,e,n,r,o){return nt.apply(this,arguments)})}]),it=l({request:f,columns:[A(),G({label:"域名",type:X.value,openPlugin:W,onClick:function(t){H(t)}}),{label:"代理地址",prop:"proxy_pass",minWidth:220,isCustom:!0,render:function(t){return g("span",{class:"flex justify-start whitespace-pre-line bt-link cursor-pointer"},[g("span",{class:"full-path",onClick:function(){H(t,"urlProxy")}},[t.proxy_pass])])}},I({table:"sites",width:200}),R({onClick:function(t){return H(t,"ssl")}}),P([{onClick:function(t){return W(t,"monitor")},title:"统计"},{onClick:function(t){return W(t,"bt_waf")},title:"WAF"},{title:"设置",onClick:function(t){return H(t)}},{title:"删除",onClick:function(t){return $(t)}}])],extension:[ot,c(Y)],empty:function(){return g("span",null,[_("您的列表为空,您可以"),g("span",{class:"bt-link",onClick:N},[_("添加一个项目")])])}}),ut=it.BtTable,lt=it.BtSearch,ct=it.BtRefresh,at=it.BtPage,st=it.BtColumn,ft=it.BtBatch,pt=it.refresh,yt=l({request:U,columns:[{label:"端口",prop:"listen_port",width:120},{label:"协议",prop:"protocol",isCustom:!0,width:80},{label:"目标",prop:"proxy_pass"},{label:"备注",prop:"ps"},P([{onClick:z,title:"设置"},{onClick:function(t){return D(t,dt)},title:"删除"}])],extension:[c(Y)]}),vt=yt.BtTable,dt=yt.refresh,mt=yt.BtRefresh,ht=yt.BtColumn,bt=yt.BtSearch;return b(function(){return K.value},function(t){t&&(dt(),"tcp"!==Z.value&&(Z.value="tcp"),K.value=!1)}),x(function(){j(function(){a(function(){return r.import("./index-legacy339.js?v=1765440387")},void 0,r.meta.url),a(function(){return r.import("./index-legacy340.js?v=1765440387")},void 0,r.meta.url)})}),function(e,n){var r=p;return k(),C("div",null,[g(y,{ref_key:"envRef",ref:q,onInit:w(pt)},null,8,["onInit"]),g(r,null,{"header-left":S(function(){return[g(w(rt)),B("div",{class:"flex items-center ml-1rem",onClick:n[0]||(n[0]=function(){return w(E)&&w(E).apply(void 0,arguments)})},t(n[1]||(n[1]=[B("i",{class:"svgtofont-desired text-[1.6rem]"},null,-1),B("span",{class:"bt-link"},"需求反馈",-1)])))]}),"header-right":S(function(){return[n[2]||(n[2]=B("div",{class:"flex items-center mr-[10px]"},null,-1)),"http"===w(Z)?(k(),C("div",Q,[g(w(lt),{class:"mr-[10px]",placeholder:"请输入域名或备注"}),g(w(ct),{class:"mr-[10px]"}),g(w(st))])):O("",!0),"tcp"===w(Z)?(k(),C("div",V,[g(w(bt),{class:"mr-[10px]",placeholder:"请输入端口"}),g(w(mt),{class:"mr-[10px]"}),g(w(ht))])):O("",!0)]}),content:S(function(){return["http"===w(Z)?(k(),T(w(ut),{key:0})):(k(),T(w(vt),{key:1}))]}),"footer-left":S(function(){return["http"===w(Z)?(k(),T(w(ft),{key:0})):O("",!0)]}),"footer-right":S(function(){return["http"===w(Z)?(k(),T(w(at),{key:0})):O("",!0)]}),_:1})])}}});e("default",f(X,[["__scopeId","data-v-ee6e6603"]]))}}})}();
Save File
Cancel